/**
 * 
 */
package com.swg.cocobox.message.event;

import java.nio.channels.SocketChannel;

import com.swg.cocobox.Event;

/**
 * @author satriaprayoga
 *
 */
public class MessageEvent extends Event {
	private static final long serialVersionUID = 4797598157960695565L;
	
	private int type;
	private Object attachment;

	protected MessageEvent(Object source, SocketChannel channel) {
		super(source, channel);
	}
	
	protected MessageEvent(Object source,SocketChannel channel,int type){
		this(source,channel);
		this.type=type;
	}
	
	public void setType(int type) {
		this.type = type;
	}
	
	public int getType() {
		return type;
	}
	
	public void setAttachment(Object attachment) {
		this.attachment = attachment;
	}
	
	public Object getAttachment() {
		return attachment;
	}

}
